____ _ _ _ _
| _ \ ___ | |_ (_) _ __ ___ __| | (_) __ _
| |_) | / _ \ | __| | | | '_ \ / _ \ / _| | | | / _ |
| _ < | __/ | |_ | | | |_) | | __/ | (_| | | | | (_| |
|_| \_\ \___| \__| |_| | .__/ \___| \__,_| |_| \__,_|
|_|
- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b- `b
Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―Β―
WxPython
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
top
wxPython ist ein Wrapper des GUI-Toolkits wxWidgets fΓΌr die Programmiersprache Python. Die Verwendung ist fast identisch mit der der C++-Version. wxPython stellt eine Alternative zu Tkinter dar, das zum Pythonpaket gehΓΆrt und auf der Tk-API basiert. Wie Python und wxWidgets ist wxPython quellcodeoffen und plattformunabhΓ€ngig.
Contents
β’ Beispiel
β’ Projekt Phoenix
β’ Literatur
β’ Weblinks
β’ Einzelnachweise
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Beispiel
Dieses Programm erzeugt ein Fenster mit dem Text "Hallo Welt!"
#!/usr/bin/env python
import wx
class TestFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, wx.ID_ANY, title=title)
text = wx.StaticText(self, label="Hallo Welt!")
app = wx.App(0)
frame = TestFrame(None, "Ein kleines Beispiel")
frame.Show()
app.MainLoop()
Projekt Phoenix
Project Phoenix, das 2010 begann, ist ein Versuch, die wxPython-Implementierung zu bereinigen und sie dabei mit Python 3 kompatibel zu machen.cite-ref-3[3] Dieses Projekt ist eine neue Implementierung von wxPython, die sich auf die Verbesserung der Geschwindigkeit, Wartbarkeit und Erweiterbarkeit konzentriert.cite-ref-4[4]
Genau wie "Classic" wxPython umschlieΓt es das wxWidgets C++-Toolkit und bietet Zugriff auf die BenutzeroberflΓ€chenteile der wx-API, wodurch Python-Anwendungen eine grafische BenutzeroberflΓ€che auf Windows-, Mac- oder Unix-Systemen mit einem nativen Look & Feel und erfordert sehr wenig, wenn ΓΌberhaupt, plattformspezifischer Code.cite-ref-5[5]
wxPython-basierende Programme
β’ BitTorrent, ist ein Programm fΓΌr Filesharing ΓΌber das BitTorrent-Protokoll
β’ Dropbox, Online-Speicher/Datensynchronisierungsdienst
β’ PlayOnLinuxcite-ref-6[6] und PlayOnMac,cite-ref-7[7] grafische Konfigurationsprogramme fΓΌr Wine mit dem Fokus auf Spielen
β’ GRASS GIS, ein freies Open-Source-Geo-Informationssystem
β’ Google Drive, Desktop-Client-Anwendung fΓΌr Googles cloud-basierendes Speichersystem.cite-ref-8[8]
Literatur
β’ Noel Rappin, Robin Dunn: wxPython in Action. 2006, ISBN 1-932394-62-1.
β’ Cody Precord: wxPython 2.8 Application Development Cookbook 2010, ISBN 1-84951-178-0.
Weblinks
β’ Projekthomepage
β’ Wiki des wxPython-Projekts
β’ wxPython bei Sourceforge.net
β’ Liste von Software, die wxPython nutzen
Einzelnachweise
cite-note-11. The wxPython Team: wxPython History. 14. Juli 2017, abgerufen am 4. Januar 2023 (englisch).
cite-note-960f9dbd819075c0-22. The wxpython Open Source Project on Open Hub: Languages Page. In: Open Hub. (abgerufen am 14. Juli 2018).
cite-note-33. β Goals of Project Phoenix. Abgerufen am 17. MΓ€rz 2016 (englisch).
cite-note-44. β Jake VanderPlas: Python Data Science Handbook. O'Reilly Media, 2016, ISBN 978-1-4919-1205-8 (englisch, python.engineering).
cite-note-55. β Project Phoenix readme file on GitHub. Abgerufen am 1. Januar 2014 (englisch).
cite-note-66. β PlayOnLinux in der englischsprachigen Wikipedia
cite-note-77. β Mac gaming in der englischsprachigen Wikipedia
cite-note-88. β Open source components and licenses. Google, abgerufen am 4. April 2013 (englisch).